package com.bw.pojo;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Purchase {
    //单据
    private Integer purchaseId;
    //购买单号
    private String purchaseCode;
    //购物时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date purchaseTime;
    //购物总数量
    private Integer purchaseNum;
    //购物总价
    private BigDecimal purchaseSumprice;
    //购物地址
    private String address;
    //用户id
    private Integer uid;
    //供应商id
    private Integer supplierId;
    //折扣
    private Double discount;
    //实付金额
    private BigDecimal payMoney;
}
